<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="org.windblog.core.*,org.windblog.core.entity.*,java.util.Date" pageEncoding="UTF-8"%>
<%@page import="org.windblog.api.template.TemplateService"%>  

<jsp:include page="header.jsp"></jsp:include>
<div id="content" class="widecolumn">

	<%
		if(WBQuery.getPostCount()>0)	
		{
			Post thePost = WBQuery.getCurrentPost();
			%>
			<div class="navigation">
			<div class="alignleft"><%=thePost.getPreviousPostLink("&laquo; %link") %></div>
			<div class="alignright"><%=thePost.getNextPostLink("%link &raquo;") %></div>
		</div>
		<div <%=thePost.getPostClass() %> id="post-<%=thePost.getPostId() %>">
		<h2><%=thePost.getTitle() %></h2>
		<div class="entry">
		<%=thePost.getContent() %>
		<br/>
		<hr/>
			</div>
		</div>
		<jsp:include page="footer.jsp"></jsp:include>
		
			<%
		}else{
			%>
			<p>Sorry, no posts matched your criteria.</p>
			<%
		}
%>
	</div>

<jsp:include page="footer.jsp"></jsp:include>
